package cc.mrbird.assets.service;

import cc.mrbird.assets.domain.EquipmentModel;
import cc.mrbird.assets.domain.Manufacturers;
import cc.mrbird.common.domain.QueryRequest;
import org.springframework.cache.annotation.CacheConfig;
import org.springframework.cache.annotation.CacheEvict;

import java.util.List;

@CacheConfig(cacheNames = "EquipmentModelService")
public interface EquipmentModelService {
    List<EquipmentModel> findAllList(EquipmentModel equipmentModel, QueryRequest request);

    @CacheEvict(allEntries = true)
    void add(EquipmentModel equipmentModel);

    EquipmentModel findByName(String equipment_model_name);
}
